package com.it.bannner.video;

import android.content.Context;

import com.google.android.exoplayer2.upstream.DataSource;
import com.google.android.exoplayer2.upstream.DefaultDataSourceFactory;

import chuangyuan.ycj.videolibrary.factory.JDefaultDataSourceFactory;
import chuangyuan.ycj.videolibrary.listener.DataSourceListener;

public class MyDataSource implements DataSourceListener {
    private Context context;

    public MyDataSource(Context context) {
        this.context = context;
    }

    @Override
    public DataSource.Factory getDataSourceFactory() {
        return new DefaultDataSourceFactory(context,context.getPackageName());
    }
}
